package cn.jinjimi.framework.helper.aspects;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Created by Hiro on 15/8/31.
 */
@Aspect
public class DebugHelper {

    @Pointcut("execution(@com.jinjimi.framework.helper.annotation.DebugTrace * *(..))")
    public void onDebugTrace(){}

    @Around("onDebugTrace()")
    public Object debugTrace(ProceedingJoinPoint joinPoint) throws Throwable {
        return joinPoint.proceed();
    }
}
